package com.mao.factory.simple;

public class FruitFactory {

    public static Fruits getFruitInstance(String type){
        switch (type){
            case "banana":
                return new Banana();
            case "apple":
                return new Apple();
        }
        return null;
    }

}
